<?php
/**
 * Created by PhpStorm.
 * User: soulmates
 * Date: 2017/7/26
 * Time: 上午11:11
 */

namespace app\home\controller;


use think\Controller;

class Base extends Controller
{

    public  function  _initialize()
    {
        if(session('id')){
        }else{
           $this->error('您未登陆，请先登录系统');
            $this->redirect('Login/login');
        }
    }

}